package com.ty.game.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @author: Troy.Chen(失足程序员, 15388152619)
 * @version: 2021-08-12 16:43
 **/
@Component
@Slf4j
public class AsyncTask implements Serializable {

    private static final long serialVersionUID = 1L;

    @Async
    public void doTask2(int i) {
        log.info("Task2-Native" + i + " started.");
    }

}
